export const createReducer = function (initialState, handlers) {
    return (state = initialState, action) => {
        const reducer = handlers[action.type];
        let result = {};
        if (reducer) {
            result = reducer(state, action);
            result.isChange = true;
        } else {
            result = state;
            result.isChange = false;
        }
        return result;
    }
}